package com.lsh.payment.core.strategy.config;

import com.lsh.payment.core.util.PropertiesUtil;
import org.springframework.stereotype.Component;


/**
 * Project Name: lsh-payment
 *
 * @author miaozhuang
 * @date 16/10/26
 * 北京链商电子商务有限公司
 * Package
 * desc:
 */
@Component
public class AliPayConfig {
    /**
     * 支付宝应用appid
     */
    public static final String app_id = "2019121169884211";
    /**
     * 商户的私钥,需要PKCS8格式
     */
    public static final String private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCDPN6cLNX9cho0hbbSly" +
            "SXZBl52dXoOipF9vROXqJ0QR5pjNeW/tnHZJh4auXZCEWbO4IpgCzvxB760sVJ+Mqa1gwZByfXjA8nTQjtnxmIhHBopLYUycbuCSgVg" +
            "qI3IHk/g0p84OKBzpCrpZIPhtUq5AGOgTrRl3lfoDp1LiYJJ7XAJTEMJvAADAXcnLsodJ2ahqUMfS9Ce1h9fTaXe/tEyMk7zfEy77n2" +
            "YXgfomvH2CgBW/750IoFMEOoUjd6vnj2t5a33HCzHw/uPZGLZxnyQHwv6lNI9qnrkcLac1usB6VavziadxsV9RD0Jk5vg1Dl8QeVgyz" +
            "dxi2PnOIocuBTAgMBAAECggEAPU53E2/ieyYNVdHNCO1wO4SYXhLD2Vsqmkp18BJHQ5WT9mzD3Zap93pnu4D8ZHl3wr9225oz48GzUy" +
            "qY3ShqxRAO0LZGB2w3O/3BmPeEvwBXXprrMCTeWB5Q6lN/Ic96tI/JgTKwvUDY1kZfR/+Nnx6qF38JEhX3rhM0m772J7oG8HfDxR3tC" +
            "ACwz+luu6mvdVg+MEvRUR/kUZw6YpuFD+NvlWSezoonxWgbo54Fy9HLjm9uSZywbvSZ5Mm+W/yYZD3pqT9KaipkAD41KNo1ZxEYNf7j" +
            "EKJFdutrU9+0hzIrL2kY9WwuJeLV/cijW7pj5grJbCb5v9zejqHGmFz7UQKBgQDVdQVJEh+XzwAD3uoTE4FQG1EL+YEo1Ay2STtj1tH" +
            "/U2A1UjBqTdCyMVuSo6upwN2c8oNd2Cc1uGBe+ByJThNbw6+4id8DNRAEJoRR9eqs0Pa/Mc9uga669wEeTlLeWIMuWCZnjzZrZBjiae" +
            "N9h6V8eRWlMVq4vMJYGLtcZGT76wKBgQCdZN113NTYfTFcq8HnPzdkjOrDQWjmhdXduFQ4MT3CN6Cwze1l9MIge5TThEuRwVgVtHiC8" +
            "/a6DySGh6hN46kyLkUvxhw8XudmmhuOWCPUZbnk78wILa2dDH1KjdL4o+UKs6h5sOjOYedSJfaDK5miFTfnsGPoXGVnz3bbJe8bOQKB" +
            "gHqIi3kvyy0FKhgOvcYnm0LV+4dpOgiq+YUmss4UQkZUoVTakmpjsxqnlM6v39o5mb3/xQN5EsEWz1OVECSNyjUSN2wy0O9xZXlMdwb" +
            "pqUZ9SjflKxNfpGM1adHw2kdC/kL7XUhzgKTTOCm46VtlI805YQCMPWzxBos131AhXYrzAoGBAJVZ3Pu2bRJw2aJCKWExj3KOdUaKju" +
            "wQG3ylKOWZdC0TdBvRjG+u7Xa9Td/YLY1FljwiYCiDL6AmNlah64bdfPPtDCHlL23p8FJf8b4EzRsC3H7tPQKVtaTM8ScJpSPjAbhB+" +
            "qBeysrsBADjnSOi/8nZsI7dxi/7XQ5Aw1v4hwehAoGAbno9weCbrGhbCtaKf+4iOStuD7XyZEg8skWucA6w3oRtec6nyzfwLlVGR57P" +
            "id20BO8cZK5L/i1QSbSet+JcbqvXt8pdczq5oyCso2nAhlnEot8Y8agpOtO7JOgQXGnkwwjIV4Le5PEPnsTOqSDZciQNydhbz0pxmGe" +
            "LswOmVus=";

    /**
     * 支付宝公钥
     */
    public static final String public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkCvF47Q/jdA7P8ul1wIPBY91KbUa" +
            "oqhj0+o+wshjMC174X2IdLatgUgHDfkseSZYA9HM4/ZE0/5l2Wj7XbSvhjnj9tbH6h/3T3jgk+GGk8ann+hZNIIdS8APjkngAiOt/9tpI3nQ" +
            "LweaK7CMsyoM6aQ5/D3lNoA9EP/B2awedMYB+fJv6Bkg3KJq5RZ4A34B3uF7+iFD/gecXz3jhS8Rd1pGKD8YKsTKwsmpxrJzoQTShvu10U0y" +
            "zSs2QrK5FxsTFu11WxbCsTMELxt7UcmwdVufxR/rC79r/8ewUQFJ0MWe6UGBU7dbFHJhOIqBdUwz5S8LXy/xlM34cuHqBwNHuwIDAQAB";

    public static final String sign_type_2 = "RSA2";

    public static final String input_charset = "utf-8";

    public static final String FORMAT = "json";

    public static final String ALIPAY_URL = "https://openapi.alipay.com/gateway.do";

    public static final String ALIPAY_QUERY_API = "https://openapi.alipay.com/gateway.do";

    public static final String ALIPAY_DOWNLOAD_API = "https://openapi.alipay.com/gateway.do";

    public static final String GOODS_NAME = "支付";

    public static final String GOODS_APP_NAME = "订单号:{0}";

    public static final String GOODS_APP_DETAIL = "支付宝支付";

    public static final String PRODUCT_CODE = "QUICK_MSECURITY_PAY";

    public static final String PRODUCT_CODE_WAP = "QUICK_WAP_WAY";

    public static final String TIMEOUT_EXPRESS = "30m";

    public static final String SUCCESS_CODE = "10000";

    /**
     * WAIT_BUYER_PAY（交易创建，等待买家付款）
     * TRADE_CLOSED（未付款交易超时关闭，或支付完成后全额退款）
     * TRADE_SUCCESS（交易支付成功）
     * TRADE_FINISHED（交易结束，不可退款）
     */
    public static final String TRADE_SUCCESS = "TRADE_SUCCESS";
    public static final String TRADE_CLOSED = "TRADE_CLOSED";
    public static final String TRADE_FINISHED = "TRADE_FINISHED";
    public static final String WAIT_BUYER_PAY = "WAIT_BUYER_PAY";
    //对账单下载
    public static final String DOWNLOAD_BILL_TYPE = "trade";

    public static final String CHANNEL_NAME = "alipay";

    public static final String ALIPAY_TITLE = "支付订单:{0}";

    public static final String notify_type = "trade_status_sync";

    public static final String ALI_BILL_ZIP_NAME = "ali_bill_{0}.zip";


    // 设置未付款交易的超时时间
    // 默认30分钟，一旦超时，该笔交易就会自动被关闭。
    // 取值范围：1m～15d。
    // m-分钟，h-小时，d-天，1c-当天（无论交易何时创建，都在0点关闭）。
    // 该参数数值不接受小数点，如1.5h，可转换为90m。
//    public static final String it_b_pay = "20m";

//    /**
//     * 支付宝提供给商户的服务接入网关URL(新)  https://openapi.alipay.com/gateway.do
//     */
//    public static final String ALIPAY_GATEWAY_NEW = "https://mapi.alipay.com/gateway.do";

//    public static final String notify_service = "notify_verify";
    // 签名方式
//    public static final String sign_type = "RSA";

    // 合作身份者ID，签约账号，以2088开头由16位纯数字组成的字符串，查看地址：https://b.alipay.com/order/pidAndKey.htm
//    public static final String partner = "2088121287862492";
//    public static final String app_id = "2015111800831855";
    // 收款支付宝账号，以2088开头由16位纯数字组成的字符串，一般情况下收款账号就是签约账号
//    public static final String seller_id = partner;
//    public static final String seller_id_new = "lsh123_wx@sina.com";

//    //商户的私钥,需要PKCS8格式，RSA公私钥生成：https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.nBDxfy&treeId=58&articleId=103242&docType=1
//    public static final String private_key = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAKZfq5WKE/ZGXV9+\n" +
//            "KExpkFeei7WasoVA4A8zavB974Z4sdhq9BHnLC9qlKPdOBVoSTZlaOZrC17Fm7YZ" +
//            "aB2vKhCXAIG3ofI99L9rmefL8vWcCx4k6GmAp3DNCAzCUmljGK+kXHP1+w2wavqV" +
//            "o6OsNXGPS+dxxw4FIgVuORqY5NLFAgMBAAECgYAXHd/nbUIMzAYZSJws0dYedocO" +
//            "+qmnXjZDpm9LbxQi6Q489c9n1WkMRZDVm905DD5v8nM64NC5oFdcW/ddeIMthZBQ" +
//            "Xp5F/46ZFHAzQqbC4FnP999x2qozZDELjiiTLNibasmndEX3BX5IWjY4CJcFMxjR" +
//            "UUIypj69ST9tS2Q5wQJBANLznq2evQin4e2JkWXdQz8GgvT172j33wn3x5xSkX8V" +
//            "kXXwaESP2YexepDLMetMtY0lFoZYD1ouKFQxaua5/MkCQQDJ5wxW6Zt9QO1gHYDF" +
//            "DQ0U+Obu9zUn0kJ4qdUOCw0Y7XaWL7UpiQYRhcagLwbJpp4mFHl8LLTGA8n8J1Oh" +
//            "QbAdAkA1WukHgN7PEadTLThZS112027MBmhHZGpFWyZho4CpZAsmiWfV74xVhc46" +
//            "USqPGRfSW08XK662YHZS1Sz0rpYBAkEAvaW4Un8V3Z46Gjk8Nlue+R8fFEHCfUgj" +
//            "xeGIzasVv192L3Zajcw2lgj5XIcvsgQ+svgycLAxkXoHpUFvbZ4dBQJAX1YKMXTF" +
//            "tTfYnokXDNY56cQnHhSEso7LW9i/DTVzJmo7Xj7DvvC5cpQubaFC1ZtEpikZ7Vzr" +
//            "hkwF8RQnOUfjag==";
//    //合作者支付宝公钥
//    public static final String public_key = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRA" +
//            "FljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQE" +
//            "B/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5Ksi" +
//            "NG9zpgmLCUYuLkxpLQIDAQAB";
//
//    //应用支付宝的公钥,查看地址：https://b.alipay.com/order/pidAndKey.htm
//    public static final String alipay_public_key = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUe" +
//            "JHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRG" +
//            "i60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB";


    // 合作身份者ID，签约账号，以2088开头由16位纯数字组成的字符串，查看地址：https://b.alipay.com/order/pidAndKey.htm
//    public static final String partner = "2088631939425723";

    // 收款支付宝账号，以2088开头由16位纯数字组成的字符串，一般情况下收款账号就是签约账号
//    public static final String seller_id = partner;
//    public static final String seller_id_new = "duodianjizhi@163.com";
    
//    //应用公钥,查看地址：https://b.alipay.com/order/pidAndKey.htm
//    public static final String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgzzenCzV/XIaNIW20pckl" +
//            "2QZednV6DoqRfb0Tl6idEEeaYzXlv7Zx2SYeGrl2QhFmzuCKYAs78Qe+tLFSfjKmtYMGQcn14wPJ00I7Z8ZiIRwaKS2FMnG7gkoFYKiN" +
//            "yB5P4NKfODigc6Qq6WSD4bVKuQBjoE60Zd5X6A6dS4mCSe1wCUxDCbwAAwF3Jy7KHSdmoalDH0vQntYfX02l3v7RMjJO83xMu+59mF4H" +
//            "6Jrx9goAVv++dCKBTBDqFI3er549reWt9xwsx8P7j2Ri2cZ8kB8L+pTSPap65HC2nNbrAelWr84mncbFfUQ9CZOb4NQ5fEHlYMs3cYtj" +
//            "5ziKHLgUwIDAQAB";


    // 支付类型 ，无需修改
//    public static final String payment_type = "1";

    // 调用的接口名，无需修改
//    public static final String service = "alipay.wap.create.direct.pay.by.user";

    // 防钓鱼时间戳  若要使用请调用类文件submit中的query_timestamp函数
//    public static final String anti_phishing_key = "";

    // 客户端的IP地址 非局域网的外网IP地址，如：221.0.0.1
//    public static final String exter_invoke_ip = "";

}
